import store from "@/store/store"

/**
 * 检测权限
 * @param {String} authKey 
 * @returns 
 */
export const checkAuth = (authKey)=>{
    const permissions = store.state.nowUserInfo.permissions;
    if (!permissions.includes(authKey)&&!permissions.includes("*:*:*")) {
       return false;
    }
    return true;
}